﻿using Dropit.Extension.Core;
using SocialPack.Composer.Extensions;

namespace SocialPack.Composer.modules.SocialPack.Composer.Functions.Linkedin
{
    public partial class CompanyProfile : BaseContentFunction
    {
        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);

            if (ContentFunctionData.IsValue("CompanyId"))
            {
                this.CompanyProfileControl.CompanyId = ContentFunctionData.Property["CompanyId"].ToString();
            }

            if (ContentFunctionData.IsValue("Text"))
            {
                this.CompanyProfileControl.Text = ContentFunctionData.Property["Text"].ToString();
            }
        }
    }
}